package com.example.mybatisdemo.remoteapi;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.*;
import org.springframework.web.multipart.MultipartFile;

public interface RemoteApi {

    @Get("http://172.22.168.84/linkage/total-record/dispose-progress")
    String getProgress(@Query("workOrderNo") String workOrderNo);

    @Post(url  = "http://172.22.156.32/statistical-analysis/kafka/to-province",
            headers = {
                    "AppId: NWIDASw9kaO1s.@ebx81@Y*x9UC@b$.S-KFu@Z*d"
            })
    String pushInfo(@JSONBody JSONObject param);


    @Post(url="http://172.22.168.18/monitor-warning/eventAlert/update-event",
            headers = {
            "AppId: SXDWUw8D7YKn.ueGxDe*G5mBv.S-KFu@Z*d"
    })
    String updateEventTime(@JSONBody JSONObject param);

    @Get(url = "http://172.22.168.18/monitor-warning/to-province-kafka/push",
            headers = {
                    "AppId: SXDWUw8D7YKn.ueGxDe*G5mBv.S-KFu@Z*d"
            })
    String pushInfoTopRrovinceKafka(@Query("caseSerialNo") String caseSerialNo);


    @Get(url = "http://172.22.168.84/easy-data/sql/data/api/v2/execute/SA2023113018060901582189")
    String listAlertEvent(@Query("alertType") String alertType,
                          @Query("startTime") String startTime,
                          @Query("endTime") String endTime);

    @Get(url = "http://172.22.168.84/uc/ld/base/external/dept-progress")
    String deptProgress(@Query("incidentNo") String incidentNo);

    @Get(url = "http://172.22.168.84/easy-data/sql/data/api/v2/execute/SA2024062715101205532680")
    String getIncidentNo(@Query("externalNo") String externalNo);

    @Get(url = "http://172.22.168.84/linkage/total-record/district-record")
    String getDistrictRecord(@Query("incidentNo") String incidentNo);

    @Get(url = "http://172.22.168.18/indicator/foodSafety/query?token=TOKEN-FORCE-SADN&region=suqian&realDataSource=gov&code=basic-gov-quick-report")
    String getJSJBAttachment();


    @Post(url  = "http://172.22.168.84/api/dright/institution/web/v1/institution",
            headers = {
                    "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEsImFjY291bnRJZCI6MSwidGVuYW50SWQiOjEsInVzZXJuYW1lIjoiYWRtaW4iLCJ1c2VyVHlwZSI6MCwiaXNzIjoiZHJpZ2h0Iiwic3ViIjoidG9rZW4iLCJpYXQiOjE3MjU4NTYyODEsIm5iZiI6MTcyNTg1NjI4MSwiZXhwIjoxNzI1OTQyNjgxfQ.juryT5nuATx4U0Kl9BVg72O3Hg0ewHGi3T9-s97az1k"
            })
    String addDept(@JSONBody JSONObject param);


    @Get(url  = "http://172.22.252.19/gw/lunling-linkage-config-api/v2/institution/institution-tree-center",
            headers = {
                    "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJqd3RUeXBlIjoidXNlciIsInVzZXJJZCI6IjMiLCJ0ZW5hbnRJZCI6IjEiLCJ1c2VybmFtZSI6Im1vbml0b3J0ZXN0MSIsInVzZXJUeXBlIjoxLCJpc3MiOiJkcmlnaHQiLCJzdWIiOiJhY2Nlc3NUb2tlbiIsImlhdCI6MTcyNTg2NjY0NSwiZXhwIjoxNzI1OTUzMTA1fQ.Cb5HbNCpCtqzyo3qzbRneldBaQVtRxMluFyTZAVbPDk"
            })
    String listDept(@Query(name = "centerCode") String centerCode);



    @Get(url  = "http://gov.gateway.com/api/ic/information-collection/cache/getByValue")
    String getDictByValue(@Query("value") String value);



    @Post(url  = "http://sjfb.data.suqian.gov.cn:9000/basegov/api/ic/information-collection/file/upload")
    String uploadFile (@DataFile("file") MultipartFile file);

    @Post("http://172.22.168.18/icity-sq-plateform/suhuiban/receive")
    String sendSuiBanMsg(@JSONBody JSONObject params);

    @Get(url = "http://172.22.168.84/linkage/total-record/district-record")
    String listCountyRecord(@Query("incidentNo") String incidentNo);
}
